<%--
XPTracker - Alternative Agile Tracking Tool
Copyright (C) 2006-2009  Stephen Starkey

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
--%>
<%@ include file="/taglibs.jsp" %>
<div class="container-fragment">
  <div style="text-align:left;">
  <table class="fragment" cellspacing="0">
    <thead>
      <tr>
        <th colspan="4" class="<xp:storyClassName story="${item}"/>">
          Story Details
          <c:if test="${!empty item.dueDate}">
            (Due on
            <fmt:formatDate value="${item.dueDate}" pattern="MM/dd/yyyy"/>
            )
          </c:if>                                       
        </th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td class="frag-titles">Size:</td><td>${item.size}</td>
        <td class="frag-titles">Created:</td><td><fmt:formatDate value="${item.lastModified}" pattern="yyyy-MM-dd"/></td>
      </tr>
      <tr>
        <td class="frag-titles">Completion:</td><td>
        <fmt:formatNumber pattern="##.##"
                          value="${xp:fromMillis(item.totalEffort, 'hours') / item.estimate * 100}"/>%</td>
        <td class="frag-titles">Modified:</td><td><fmt:formatDate value="${item.lastModified}" pattern="yyyy-MM-dd"/></td>
      </tr>
      <tr><td class="frag-titles">State:</td><td><xp:story-state-display story="${item}" noLink="true"/></td><td class="frag-titles">Creator:</td><td>${item.creator.username}</td></tr>
      <tr><td class="frag-titles">Severity:</td><td>${item.severity}</td><td class="frag-titles">Owner:</td><td>${item.owner.username}</td></tr>
      <c:if test="${!empty item.description}">
        <tr>
          <td colspan="4" style="border-top:1px dotted black; padding-left: 10px; padding-right: 10px">
            <xp:wiki-display content="${item.descriptionContent}" maxLines="3"/>
          </td>
        </tr>
      </c:if>
    </tbody>
    </table>
  </div>

</div>  
